package com.nwpu.server.admin.service.impl;

import com.nwpu.server.admin.dao.PipelineDao;
import com.nwpu.server.admin.entity.EmbeddingmethodTitleEntity;
import com.nwpu.server.admin.entity.PipelineEntity;
import com.nwpu.server.admin.entity.PipelineTitleEntity;
import com.nwpu.server.admin.service.PipelineService;
import com.nwpu.server.common.response.PageUtils;
import com.nwpu.server.common.response.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("pipelineService")
public class PipelineServiceImpl extends ServiceImpl<PipelineDao, PipelineEntity> implements PipelineService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PipelineEntity> page = this.page(
                new Query<PipelineEntity>().getPage(params),
                new QueryWrapper<PipelineEntity>()
        );

        return new PageUtils(page);
    }
}